package com.sprometheus.config;

import com.sprometheus.core.pojo.Groups;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;

/**
 * 飞书配置
 *
 * @author 风白羽
 * @date 2024/9/6 上午9:34
 */
@Data
@Component
@ConfigurationProperties(prefix = "sprometheus.feishu")
public class FeishuNoticeProperties {
    //开关
    private boolean enabled = false;
    //包含的路径
    private Set<String> includedTracePackage = new HashSet<>();
    //业务群推送
    private Set<Groups> business = new HashSet<>();
    //开发群推送
    private Set<Groups> developer = new HashSet<>();
}
